<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html >
<html>
<head>
    <title>院线集合</title>
    <t:base type="jquery,easyui,tools"></t:base>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:datagrid name="intheaterList" title="" actionUrl="zyIntheaterController.do?getAllIntheater" idField="id" checkbox="true" showRefresh="false" pagination="false" queryMode="group">
    <t:dgCol title="院线id" field="id" hidden="true"></t:dgCol>
    <t:dgCol title="院线名称" field="typename" query="true" queryMode="single" width="50"></t:dgCol>
</t:datagrid>
</body>

<script type="text/javascript">
    $(function(){
        $("#intheaterList").datagrid({
            onLoadSuccess : function(){
                var roleIds = $("#intheaterId",top.myWindow.document).val();
                if(roleIds != undefined){
                    $(roleIds.split(",")).each(function(i,id){
                        $($("#intheaterList").datagrid("getRows")).each(function(j,rowData){
                            if(rowData.id == id){
                                $("#intheaterList").datagrid("selectRow",j);
                            }
                        });
                    });
                }

            }
        });

    });
</script>
</html>


